<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIndexStepIdInStepSkuTable extends AbstractMigration
{
    public function up()
    {
        $this->table('step_sku')->addIndex(['step_id'], ['name' => 'idx_step_id', 'type' => 'normal'])->save();
    }

    public function down()
    {
        $this->table('step_sku')->removeIndexByName('idx_step_id')->save();
    }
}
